<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$userinfo.nickname}的个人主页 - {$sitename}</title>
{include file="header"/}
</head>
<body>
    <!-- // navbar End -->
    <div class="layout fn-clear">
    <div class="logo"><a href="{$siteurl}" title="{$sitename}"></a></div>
      <!-- // logo end -->
      <div id="personal-nav">
        <ul id="uv">
          <li class="current"><a onclick="Tabpage.showvod('{:zanpian_user_url('user/home/love',array('id'=>$userinfo['userid']))}');$(this).parents('#uv').find('li').removeClass('current');$(this).parent('li').addClass('current');"  idx="0" rel="nofollow">Ta的收藏</a></li>
          <li><a onclick="Tabpage.showvod(' {:zanpian_user_url('user/home/remind',array('id'=>$userinfo['userid']))}');$(this).parents('#uv').find('li').removeClass('current');$(this).parent('li').addClass('current');"  idx="1" rel="nofollow">Ta的订阅</a></li>
          <li><a onclick="Tabpage.showcomm('{:zanpian_user_url('user/home/comm',array('id'=>$userinfo['userid']))}');$(this).parents('#uv').find('li').removeClass('current');$(this).parent('li').addClass('current');"  idx="2" rel="nofollow">Ta的评论</a></li>
		  <a href="{:zanpian_user_url('user/center/index')}">会员中心</a>
        </ul>
      </div>
      <!-- // personal-nav end -->
     </div>
    <!-- // layout end -->
  </div>
  <!-- // headbar end -->
</div>
<!-- // header end -->
<div class="layout fn-clear" id="ui-personal">
  <div id="personal-bar">
       <div class="personal-info"><img class="avatar" src="{$avatarlist[big]}" alt="{$userinfo.nickname}" />
      <ul>
        <li><a href="javascript:Tabpage.showvod('{:zanpian_user_url('user/home/love',array('id'=>$userinfo['userid']))}')" idx="0" rel="nofollow">{$userinfo['favorite_count']}</a>
          <p>收藏</p>
        </li>
        <li class="line"></li>
        <li><a href="javascript:Tabpage.showvod('{:zanpian_user_url('user/home/remind',array('id'=>$userinfo['userid']))}')" idx="1" rel="nofollow">{$userinfo['remind_count']}</a>
        
          <p>订阅</p>
        </li>
        <li class="line"></li>
        <li><a href="javascript:Tabpage.showcomm('{:zanpian_user_url('user/home/comm',array('id'=>$userinfo['userid']))}')" idx="2" rel="nofollow">{$userinfo['comment_count']}</a>
          <p>评论</p>
        </li>
      </ul>
    </div>
    <!-- // personal-info End -->
    <div class="personal-visitors">
      <h3>最近访客</h3>
      <ul class="visitor-list">
    {php}$visitors_list = zanpian_mysql_visitors('uid:'.$userinfo['userid'].';limit:8;order:visitors_addtime desc');{/php}
     {volist name="visitors_list" id="fk"}
     {php}$avatar=ps_getavatar($fk['visitors_userid'],$fk['api'][0]['avatar']);{/php}
      <li><a href="{:zanpian_user_url('user/home/index',array('id'=>$fk['visitors_userid']))}" target="_blank"><img src="{$avatar['big']}" alt="{$fk.nickname}" /></a><h5><a target="_blank" href="{:zanpian_user_url('user/home/index',array('id'=>$fk['visitors_userid']))}">{$fk.nickname}</a></h5><p>{$fk.visitors_addtime|date='m-d H:i:s',###}</p><p class="guanzhu" style="display:none;"><a href="javascript:" val="{$fk.visitors_userid}" class="focus">+关注</a></p></li>
      {/volist}
      </ul>
    </div>
    <!-- // personal-visitors end -->
  </div>
  <!-- // personal-bar end -->
  <div id="personal-box">
    <div class="personal-intro">
      <h5><span><a class="promsg-btn" href="javascript:;">给我私信</a></span>{$userinfo.nickname}<a href="{:rtrim($siteurl,'/')}{:zanpian_user_url('user/home/index',array('id'=>$userinfo['userid']),true,false)}">{:rtrim($siteurl,'/')}{:zanpian_user_url('user/home/index',array('id'=>$userinfo['userid']),true,false)}</a>
        <!--<p><a href="javascript:" val="3531" class="focus">+关注</a></p>-->
      </h5>
      <ul>
        <li><span class="sex">
          <label>性别：</label>{if condition="$userinfo.detail.sex eq 1"}男{elseif condition="$userinfo.detail.sex eq 2" /}女{else/}未知{/if}</span><span class="birthday">
          <label>生日：</label>{$userinfo.detail.birthday|default='未知'}</span><span class="address">
          <label>地区：</label>{$userinfo.detail.prov|default='未知'}{$userinfo.detail.city}</span></li>
        <li><span class="regtime">
          <label>注册时间：</label>{$userinfo.regdate|date='Y-m-d H:i:s',###}</span><span class="lastlogin">
          <label>最后登录：</label>{$userinfo.lastdate|date='Y-m-d H:i:s',###}</span></li>
      </ul>
    </div>
    <h2 id="Tab_title">Ta的收藏</h2>
    <div class="personal-cnt fn-clear">
<div id="commbox">
        <div style="height:40px;line-height:40px;text-align:center; font-size:15px;">该会员还没有收藏任何内容!</div>
</div>
      <!-- // i-list End -->
      <div class="loading pages"><ul class="pagination" id="pagebox"></ul></div>
    </div>
    <!-- // ui-comment-box End -->
  </div>
  <!-- // personal-box End -->
</div>
<!-- // ui-personal End -->
<div class="footer">
{include file="footer"/}
<!-- // footer end -->
</div>
<!-- // footer end -->
  <div class="smileBoxOuter" id="smileBoxOuter" tabindex="2">
            <ul class="smileBox">
                {foreach name="list_emots" item="row"}
                    {if condition="$key lt 44"}
                        <li><a href="javascript:void(0)" class="smile{$row.emot_id}" title="{$row.emot_name}"></a></li>
                    {/if}
                {/foreach}
            </ul>
            <ul class="smileBox" style="display:none;">
                {foreach name="list_emots" item="row"}
                    {if condition="$key gt 44"}
                        <li><a href="javascript:void(0)" class="smile{$row.emot_id}" title="{$row.emot_name}"></a></li>
                    {/if}
                {/foreach}
            </ul>
            <div class="smilePage">
                <a href="javascript:void(0)" class="current">1</a>
                <a href="javascript:void(0)">2</a>
            </div>
        </div>  
<div style="display:none" id="hidcommformt">
  <div class="comment-replay">
    <div class="comment-replay-arrow"></div>
    <div class="comment-replay-cnt">
      <form  method="post" id="mcommformt">
        <div class="ui-form-item recm_id" id='0'>
          <textarea class="ui-input ui-textarea" id="commtxt" name="recomm_txt" onfocus="if(this.value==&#39;请在这里发表您的个人看法，最多1000个字。&#39;){this.value=&#39;&#39;;}" onblur="if(this.value==&#39;&#39;){this.value=&#39;请在这里发表您的个人看法，最多1000个字。&#39;;};" autocomplete="off"></textarea>
        </div>
        <div class="comment-replay-assist fn-clear">
          <span class="emotion" tabindex="1" data-id='0' id="row_id"></span>
          <input type="hidden" id="comm_vid" value="0" name="comm_vid">
          <input type="hidden" id="comm_pid" value="0" name="comm_pid">
          <input type="hidden" id="comm_id" value="0" name="comm_id">
          <input type="hidden" id="comm_tuid" value="0" name="comm_tuid">   
          <input type="hidden" id="comm_sid" value="0" name="comm_sid">    
          <a class="ui-link sub">提交</a></div>
      </form>
    </div>
  </div>
  <!-- // cmt-replay End -->
</div>
{include file="home_login" /}
<div style=" display:none">
  <div id="promsg-dialog">
    <div class="ui-dialog-cnt">
      <div class="ui-promsg-dialog fn-clear">
        <div class="ui-form">
         <form id="sendmsg" method="post" onsubmit="return false;">
            <div class="ui-form-title">
              <h3>写私信</h3>
            </div>
            <div class="ui-form-item fn-clear">
              <label for="msgtitle" class="ui-label w60">标题：</label>
              <input type="text" id="msg_title" name="msg_title" class="ui-input w375" value="" />
            </div>
            <div class="ui-form-item fn-clear">
              <label for="msgtxt" class="ui-label w60">内容：</label>
              <textarea class="ui-input ui-textarea w360" id="msg_content" name="msg_content" ></textarea>
            </div>
            {notempty name="userconfig['user_code']"}
             <div class="ui-form-item fn-clear">
              <label for="validate" class="ui-label w60">验证码：</label>
               <input type="text" id="validate" name="validate" maxlength="5" class="ui-input w60" value="">&nbsp;<a href="javascript:reloadcode()"><img src="{:zp_url('user/validate/verify','',false,false)}" alt="看不清楚换一张" name="safecode" border="0" align="absbottom" id="safecode"></a>
            </div>
            {/notempty}
            <div class="ui-form-item ui-form-button fn-clear">
              <label class="ui-label w50"></label>
               <input type="hidden" id="msg_uid" name="msg_uid" value="{$userinfo.userid}">
              <input type="button" id="msgbt" class="ui-button w150" value="发 送" />
            </div>
          </form>
        </div>
        <!-- // ui-form End -->
      </div>
      <!-- // ui-login-dialog End -->
    </div>
  </div>
</div>
<!-- // promsg end -->
<script type="text/javascript">
var reloadcode = function(){
	$('#safecode').attr('src',"{:zp_url('user/validate/verify','',false,false)}-" + Math.random());

}
Root='{$root}';
$(document).ready(function(){
	$("#personal-nav a,.personal-info a").click(
	function (){
	idx=$(this).attr('idx');
	var tab_txt=new Array('Ta的收藏','Ta的订阅','Ta的评论');
	$("#Tab_title").html(tab_txt[idx]);
    $("#personal-nav li").removeClass('current');
	 $("#personal-nav li:eq("+idx+")").addClass('current');
	Tabpage.showvod($(this).attr('data'));
	}
	);
$("#msgbt").click(
	function (){
	 if($("#msg_title").val()==''){
			$.showfloatdiv({txt:'请输入短信标题'});
			$("#msg_title").focus();
			$.hidediv({});}else if($("#msg_content").val()==''){
			$.showfloatdiv({txt:'请输入短信内容'});
			$("#msg_content").focus();
			$.hidediv({});}else{
	       $("#sendmsg").qiresub({
			 curobj : $(".msgbt"),
			 txt : '数据提交中,请稍后...',
			 onsucc : function(result) {
			 $.hidediv(result);		
			 if(parseInt(result['rcode'])>0){
			   $("#msg_title").val('');
			   $("#msg_content").val('');
			   $("#validate").val('');
			   $("#cboxClose").trigger('click');
			  }
			}
			}).post({
			url : "{:zanpian_user_url('user/center/sendmsg')}"
			});
			}
	}
	);
}); 
var $uid='{$userinfo.userid}';
function dVisit(url){
	$.ajax({
    url:url,
	type:'post',
	data:'vid='+$uid,
	success:function(){
	},dataType:'json',
	timeout:20000,
	error:function(){
	 } });
}
var Tabpage={
'showcomm':function(url){
$("#commbox");
  pagegoo(url);
},
'showvod':function(url){
$.ajax({
		url : url,
		success : function(data) {
        if(data.ajaxtxt != '') {
		$("#commbox").html(data.ajaxtxt);
		$("#pagebox").html(data.pages);
		}else{
			$("#commbox").html('<div style="height:40px;line-height:40px;text-align:center; font-size:15px;">当前没有任何内容!</div>');
			$("#pagebox").html('');
		}
		$(".commpage a,.pages ul a").click(function(e) {
				var pagegourl=$(this).attr('href');
				pagegourl=pagegourl.replace('http://','').replace(window.location.host,'');
				Tabpage.showvod(pagegourl);
				return false;
			});
		},
		dataType : 'json'
		}
		);
}
}
Tabpage.showvod("{:zanpian_user_url('user/home/love',array('id'=>$userinfo['userid']))}");
</script>
<script type="text/javascript" src="{$apicss}user/new/js/read.js"></script>
</body>
</html>
